@echo off
setlocal EnableExtensions
xcopy /s /e /i src chrome-page-compare
"%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --pack-extension="%CD%\chrome-page-compare" --pack-extension-key="%CD%\..\chrome-page-compare.pem" --no-message-box
if errorlevel 1 goto err
rd /s /q chrome-page-compare
if exist ..\chrome-page-compare.crx del ..\chrome-page-compare.crx
move chrome-page-compare.crx ..\
goto end
:err
echo *********** ERROR OCCURRED! ************
pause
:end
endlocal
